import request from '@/utils/request'

export function addManager(data) {
  return request({
    url: '/admin/adminManage',
    method: 'post',
    data
  })
}

export function getManager() {
  return request({
    url: '/admin/adminManage',
    method: 'get'
  })
}

export function deleteManager(adminId) {
  return request({
    url: `/admin/adminManage/${adminId}`,
    method: 'DELETE'
  })
}

export function updateManager(data) {
  return request({
    url: '/admin/adminManage',
    method: 'PUT',
    data
  })
}

